home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1599 / 1470 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.9 KB

  1. From: Claus Brod <clausb@hpbeo79.bbn.hp.com>
  2. Subject: Re: GEMDOS re-entrancy
  3. Date: Thu, 26 May 94 8:45:06 MESZ
  4. In-Reply-To: <m0q6NYR-0000fNC@sdf.lonestar.org>; from "Evan K. Langlois" at May 25, 94 1:19 pm
  5. Mailer: Elm [revision: 70.85]
  6.  
  7. > ========================================================================
  8. > semaphores for AES, VDI and GEMDOS. The effect would be that you couldn't
  9. > call AES while another process is inside AES, but that's exactly
  10. > ========================================================================
  11. > Question, why AES and VDI?
  12.  
  13. - Process A calls rsrc_load(), enters GEMDOS and the HD driver.
  14.  
  15. - HD driver sets up transfer, puts process A to sleep (inside a GEMDOS
  16.   call inside an AES call)
  17.  
  18. - Process B calls AES and may crash since AES isn't reentrant - even
  19.   if B doesn't call something that causes files to be accessed
  20.  
  21. A similar story applies to the VDI. (Just think about loading
  22. fonts.)
  23.  
  24. So my vote is: Block GEMDOS, AES and VDI for a first attempt. It
  25. will still prove to be useful, and I could at least add some
  26. kind of background transfer into the driver and have it tested.
  27.  
  28. BTW: I would be interested how all this will be done in Mag!X.
  29. I hear that they are working on all those things that we are still
  30. just discussing. D*mn, how I wish we could somehow merge MiNT
  31. and Mag!X...
  32.  
  33. > Semaphores are nice in the right place, when you just want to do nothing
  34. > if some other process owns the semaphore, but we want to do something 
  35. > special, so in effect, the GEMDOS trap would become the semaphore.
  36.  
  37. Aren't semaphores supposed to put all requesting processes to sleep
  38. until someone frees the semaphore? That would be the exact equivalent
  39. to what you propose, without the need to change trap vectors.
  40.  
  41. --clausb@hpbeo79.bbn.hp.com-----------------------------------------------
  42. Claus Brod, MDD, HP Boeblingen         Have you hugged your manager today?
  43. --#include <std_disclaimer>-----------------------------------------------
  44.